package com.yootoo.extpmml.Entites.model;

import java.io.Serializable;

public class ModelDesc implements Serializable{
    private String name;
    private byte[] pmml;
    private Integer state; // 1 活跃,已上线;0 待上线;-1无效
    private String source; //Evaluator or Booster or Drools
    private String features;
    private String extension;

    public ModelDesc() {
    }

    public ModelDesc(String name, byte[] pmml, Integer state, String source,String features,String extension) {
        this.name = name;
        this.pmml = pmml;
        this.state = state;
        this.source = source;
        this.features = features;
        this.extension = extension;
    }

    public String getFeatures() {
        return features;
    }

    public void setFeatures(String features) {
        this.features = features;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public byte[] getPmml() {
        return pmml;
    }

    public void setPmml(byte[] pmml) {
        this.pmml = pmml;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    @Override
    public String toString() {
        return "ModelDesc{" +
                "name='" + name + '\'' +
                ", pmml= ******" +
                ", state=" + state +
                ", source='" + source + '\'' +
                ", features='" + features + '\'' +
                ", extension='" + extension + '\'' +
                '}';
    }
}
